package com.mostromas.ess.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 报损单
 */
@ApiModel(value = "StockLoss对象",description = "报损单")
@TableName("mr_stock_loss") // mr_composition
@Data
public class StockLoss extends StockBasics implements Serializable {
    private static final long serialVersionUID = -6955782551772931093L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "所属仓库ID")
    private String warehouseId;

    @TableField(exist = false)
    @ApiModelProperty(value = "报损单款式明细")
    private List<StockLossDetailed> detailedList = Lists.newArrayList();
}
